package com.example.hxds.dr.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author XUYANG
 * @Date 2024-03-10 17:56
 */
@Data
@Schema(description = "司机人脸识别归档")
public class CreateDriverFaceModelForm {
    @NotNull(message ="driverId不能为空")
    @Min(value=1,message = "driverId不能小于1")
    @Schema(description = "司机ID")
    private Long driverId;

    @NotBlank(message = "photo不能为空")
    @Schema(description = "司机的面部照片为Base64字符串")
    private String photo;
}
